#ifndef CONNECTIONPARAMMODEL_H
#define CONNECTIONPARAMMODEL_H

#include <QObject>

class ConnectionParamModel : public QObject {
	Q_OBJECT
	Q_PROPERTY(QString host READ host WRITE setHost NOTIFY hostChanged)
	Q_PROPERTY(QString login READ login WRITE setLogin NOTIFY loginChanged)
	Q_PROPERTY(QString password READ password WRITE setPassword NOTIFY passwordChanged)
public:
	explicit ConnectionParamModel(QObject *parent = 0);

	QString host() const;
	void setHost(const QString &host);
	QString login() const;
	void setLogin(const QString &login);
	QString password() const;
	void setPassword(const QString &password);

signals:
	void hostChanged();
	void loginChanged();
	void passwordChanged();

public slots:
private:
	QString mHost;
	QString mLogin;
	QString mPassword;

};

#endif // CONNECTIONPARAMMODEL_H
